package org.demo;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.MDC;

/**
 * @author yexi
 */
@Slf4j
public class TestClass2 {

    public void log(String MDCValue) {
        log.info("TestClass2类中记录的未定义MDC值日志");
        MDC.put("variableKey", MDCValue);
        MDC.put("TRACE_ID", MDCValue);
        log.info("TestClass2类中记录的MDC日志");
    }

}
